<?php
include_once 'func/weibo.php';
$code = $_GET['code'];
//从微博获取token
$weibo = new weibo();
$token = $weibo->getWeiboToken($code);
//var_dump('code里面的'.$token);